package com.lcf.feign.service.system;

import com.lcf.feign.dto.system.user.SysUserFeignDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 描述：用户feign
 *
 * @author lcf
 * @since 2025/3/4 20:09
 */
@FeignClient(name = "${system-service-name}", contextId = "user", url = "${system-service-url}", path = "feign/user")
public interface SysUserFeignService {
    /**
     * 根据用户id获取
     */
    @GetMapping("{id}")
    SysUserFeignDTO getUserById(@PathVariable Long id);
}
